From: czard Date: Mon, 3 Mar 2025 12:08:28 +0000 (+0000) Subject: Added a comment: Permission fix X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~6^2~127 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d7569351bfd05376fd624867e27e1668a46b9dfe;p=git-annex.git Added a comment: Permission fix --- diff --git a/doc/tips/unlocked_files/comment_18_c1e4af3235acf9cca4730c8dabf66dce._comment b/doc/tips/unlocked_files/comment_18_c1e4af3235acf9cca4730c8dabf66dce._comment new file mode 100644 index 0000000000..7e0c11e9e3 --- /dev/null +++ b/doc/tips/unlocked_files/comment_18_c1e4af3235acf9cca4730c8dabf66dce._comment @@ -0,0 +1,45 @@ +[[!comment format=mdwn + username="czard" + avatar="http://cdn.libravatar.org/avatar/52ff2343057d711a2000506267bf91d8" + subject="Permission fix" + date="2025-03-03T12:08:28Z" + content=""" +Hi, + +Lots of gratitude for your work on git annex. + +I have an annex repo with a default setting to unlock files. When I run `git annex add myfile`, I notice a change related to permission is added to my file in the working tree, which I need to further `git add` in order to get to a clean state. See below. + +Is that expected? I'm wondering if it wouldn't make more sense / be a better experience if `git annex add myfile` would seamlessly handle that permission change and add it to git for unlocked files, so I don't have to run both `git annex add` and `git add` to get to a clean state? + +Thanks. + +``` +$ git status +On branch main +Untracked files: + (use \"git add ...\" to include in what will be committed) + 05 Tapestry.mp3 + +nothing added to commit but untracked files present (use \"git add\" to track) + +$ git annex add . +add 05 Tapestry.mp3 +ok +(recording state in git...) + +$ git status +On branch main +Changes to be committed: + (use \"git restore --staged ...\" to unstage) + new file: 05 Tapestry.mp3 + +Changes not staged for commit: + (use \"git add ...\" to update what will be committed) + (use \"git restore ...\" to discard changes in working directory) + modified: 05 Tapestry.mp3 + +$ git diff +05 Tapestry.mp3 changed file mode from 100644 to 100755 +``` +"""]]